﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Demo.Framework.DataStructure.ListFlattening
{
    internal class Node
    {
        public object Data { get; set; }
        public Node Next { get; set; }
        public Node Child { get; set; }

        public Node(object data)
        {
            this.Data = data;
        }

        public override string ToString()
        {
            return Data.ToString();
        }

    }
}
